import { observable,computed, action, asMap, toJS } from 'mobx';
import * as API from '../../api/fnaSpecial'
import { Form } from 'weaver-mobile-page';

export default class PopupEditStore {
    @observable form = new Form.Store();
    @observable loding = false;

    //获取修改金额的表单
    @action
    getPopupEditForm = (params,path) => {
        this.loding = true;
        params = {dataType:0, ...params};
        API.getPopupEditForm(params).then( result => {
            const { conditions } = result;
            this.form = new Form.Store();
            this.form.initForm(conditions, path);

            this.loding = false;
        })
    }
}